<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php use_javascript('jquery-1.7.1.js') ?>
<?php use_javascript('imageflow.js') ?>
<?php// use_javascript('imageflow.packed.js') ?>
<?php use_stylesheet('imageflow.css') ?>
</head>

<body>
<table class = "sitemap"><tr>
<td style = "border-right-style:groove;border-color:black;" align = "center" width = "100px"><a href = "<?php echo url_for('@accueil')?>">Accueil</a></td>
<td style = "border-right-style:groove;border-color:black;" align = "center" width = "150px"><a href = "#">L'outil pedagogique</a></td>
<td style = "border-right-style:groove;border-color:black;" align = "center" width = "120px"><a href = "<?php echo url_for('outil/centrepilote') ?>" style = "color:#c4111e">Le centre pilote</a></td>
</table>
<h1>Le centre de pilote</h1>
<div>
    <div id = "alcentrepilote" class = "imageflow" align = "center">
	<?php foreach ($centrepilotes as $centrepilote): ?>		  
		<img src = "<?php echo sfConfig::get('sf_image_dir_name')
		  .sfConfig::get('sf_upload_dir_name').'/'.$centrepilote->getPhotourl()?>" height = "300"></img>
	<?php endforeach; ?>
	</div>
	<div style = "margin-left:50px;margin-right:50px"><?php echo html_entity_decode($description->getDescription()) ?></div>
</div>	
<?php if($sf_user->isAuthenticated()):?>
<?php if ($sf_user->getGuardUser()->hasGroup('admin')):?>
<div><a href="<?php echo url_for('outil/edit?id='.$description->getId()) ?>">Edit</a></div>
<?php endif;?>
<?php endif;?>
<!--<div><a href="<?php// echo url_for('outil/new') ?>">New</a></div>-->

<script type = "text/javascript" language = "javascript">
	$(document).ready(function () {  	
	var slideshow = new ImageFlow();
	slideshow.init({ ImageFlowID: 'alcentrepilote',
						 aspectRatio: 2.333, 
						 slider: true,
						 buttons:true,
                         slideshow: true,
						 reflectionGET: '&fade_start=20%',
						 reflection : true
                         });	
         });	
</script>

</body>
</html>